package cn.tedu.jsd2207csmall.passport.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AdminLoginDTO implements Serializable {

    @ApiModelProperty(value = "用户名",required = true)
    @NotNull(message = "添加管理员失败,必须提交用户名!")
    private String username;

    @ApiModelProperty(value = "密码",required = true)
    private String password;

}
